		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 12, 2021										 **
		 **															 **
		 ** Task: Table A9-Model 4 results with varying distances 	 **
		 **															 **
		 **************************************************************
		  
									 
			clear
			version 16.1
			set seed 1234

			** Change working directory
			cd "~"
			 
			use "ht_merged.dta"	
			merge 1:1 ccode year using "ht_eba_ivs.dta"		
			global IVs "gdp_ln pop_ln"
			
			
			 			***********************************	
						***  Model 4, various distances ***
						***********************************	
 										
				
			* 4.12. V-DEM W interaction, 12km
			
			probit F.source v2clfmove W_vfomov_con12 interact_W_Vf12 $IVs , robust cluster (ccode)
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M4_12
	
			* 4.24. V-DEM W interaction, 24km
			
			probit F.source v2clfmove W_vfomov_con24 interact_W_Vf24 $IVs , robust cluster (ccode)
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M4_24				
				
			* 4.150. V-DEM W interaction, 150km
			
			probit F.source v2clfmove W_vfomov_con150 interact_W_Vf150 $IVs , robust cluster (ccode)
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M4_150				
				
			* 4.400. V-DEM W interaction, 400km
			
			probit F.source v2clfmove W_vfomov_con400 interact_W_Vf400 $IVs , robust cluster (ccode)
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M4_400				
				
			esttab M4_12 M4_24 M4_150 M4_400 using "model4_distances.csv", replace ///
			title(Model 4: various distances, probit results) ///
			obslast label se nogaps scalars(N pr2)  star(* 0.05 ** 0.01 *** 0.001)  
															
			
			
			
